Rust CDK Timers Library
This crate provides a library to schedule multiple and periodic tasks on the Internet Computer.
Example
In Cargo.toml
:
[]
= "0.4.0"
To schedule a one-shot task to be executed 1s later:
;
set_timer
References
- Internet Computer Developer Guide: Periodic Tasks and Timers
- Example: Periodic Tasks and Timers (compares timers and heartbeats).